package com.didispace.hystrix;

import com.didispace.service.ComputeClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Hystrix回调类：omputeClientHystrix
 * @author jiangbang
 * @date 2017/4/18
 */

@Component
public class ComputeClientHystrix implements ComputeClient {


    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        return -9999;
    }
}